/** @format */

import Message from '@/components/message/index';
export const message = {
  success(message: string) {
    Message.success({
      message,
      showClose: window.innerWidth < 768,
    });
  },
  warning(message: string) {
    Message.warning({
      message,
      showClose: window.innerWidth < 768,
    });
  },
  error(message: string) {
    Message.error({
      message,
      showClose: window.innerWidth < 768,
    });
  },
  info(message: string) {
    Message.info({
      message,
      showClose: window.innerWidth < 768,
    });
  },
};
